home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.lnx < prev    next >
Text File  |  1996-07-05  |  5KB  |  150 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler, Epstein
  29. *
  30. * Version Creation Date:   8/1/94
  31. *
  32. * $Revision: 4.0 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *       version for Linux
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name          Description of modification
  41. * -------  ----------    ---------------------------------------------------
  42. *
  43. * $Log: ncbilcl.lnx,v $
  44. Revision 4.0  1995/07/26  13:46:50  ostell
  45. force revision to 4.0
  46.  
  47. Revision 1.4  1995/05/15  18:45:58  ostell
  48. added Log line
  49.  
  50. *
  51. *
  52. * ==========================================================================
  53. */
  54. #ifndef _NCBILCL_
  55. #define _NCBILCL_
  56.  
  57. /* PLATFORM DEFINITION FOR Linux */
  58.  
  59. #define COMP_SYSV
  60. #define OS_UNIX
  61. #define OS_UNIX_LINUX
  62. #define PROC_I80X86
  63. #define WIN_DUMB
  64.  
  65. /*----------------------------------------------------------------------*/
  66. /*      Desired or available feature list                               */
  67. /*----------------------------------------------------------------------*/
  68.  
  69.  
  70. /*----------------------------------------------------------------------*/
  71. /*      #includes                                                       */
  72. /*----------------------------------------------------------------------*/
  73. #include <sys/types.h>
  74. #include <limits.h>
  75. #include <sys/stat.h>
  76. #include <stddef.h>
  77. #include <stdio.h>
  78. #include <ctype.h>
  79. #include <string.h>
  80. #include <malloc.h>
  81. #include <memory.h>
  82. #include <stdlib.h>
  83. #include <math.h>
  84. #include <errno.h>
  85. #include <float.h>
  86. #include <unistd.h>
  87.  
  88. /*----------------------------------------------------------------------*/
  89. /*      Missing ANSI-isms                                               */
  90. /*----------------------------------------------------------------------*/
  91. #define noalias    
  92.  
  93. #ifndef SEEK_SET
  94. #define SEEK_SET    0    /* Set file pointer to offset */
  95. #define SEEK_CUR    1    /* Set file pointer to current plus offset */
  96. #define SEEK_END    2    /* Set file pointer to EOF plus offset */
  97. #endif
  98. #ifndef FILENAME_MAX
  99. #define FILENAME_MAX 1024
  100. #endif
  101.  
  102. /*----------------------------------------------------------------------*/
  103. /*      Aliased Logicals, Datatypes                                     */
  104. /*----------------------------------------------------------------------*/
  105.  
  106. /*----------------------------------------------------------------------*/
  107. /*      Misc Macros                                                     */
  108. /*----------------------------------------------------------------------*/
  109. #define PROTO(x) x    /* Prototypes are acceptable */
  110. #define VPROTO(x) x   /* Prototype for variable argument list */
  111. #define DIRDELIMCHR     '/'
  112. #define DIRDELIMSTR     "/"
  113. #define CWDSTR          "."
  114.  
  115. #define KBYTE           (1024)
  116. #define MBYTE           (1048576)
  117.  
  118. #define IS_LITTLE_ENDIAN
  119. #define TEMPNAM_AVAIL
  120.  
  121. /*----------------------------------------------------------------------*/
  122. /*      For importing MS_DOS code                                       */
  123. /*----------------------------------------------------------------------*/
  124. #define near
  125. #define far
  126. #define huge
  127. #define cdecl
  128. #define pascal
  129. #define _pascal
  130. #define _near
  131. #define _far
  132. #define _huge
  133. #define _cdecl
  134.  
  135. /*----------------------------------------------------------------------*/
  136. /*      Macros for Floating Point                                       */
  137. /*----------------------------------------------------------------------*/
  138. #define EXP2(x) exp((x)*LN2)
  139. #define LOG2(x) (log(x)*(1./LN2))
  140. #define EXP10(x) exp((x)*LN10)
  141. #define LOG10(x) log10(x)
  142.  
  143. /*----------------------------------------------------------------------*/
  144. /*      Macros Defining Limits                                          */
  145. /*----------------------------------------------------------------------*/
  146. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  147.  
  148. #endif
  149.  
  150.